{% spaceless %}
{% with bugs=item.extra_data.bugs %}
{% with bugs_dependencies=item.extra_data.bugs_dependencies %}
{% with buggy_dependencies=item.extra_data.buggy_dependencies %}

<div>
    <span>Version {{ item.extra_data.version }} of {{ item.package.name }} is marked for autoremoval from testing on {{ item.extra_data.removal_date }}. </span>

    {% if bugs %}
    <span>It is affected by {{ bugs|safe }}. </span>
    {% endif %}

    {% if bugs_dependencies %}
    <span>It depends (transitively) on {{ buggy_dependencies|safe }}, affected by {{ bugs_dependencies|safe }}. </span>
    {% endif %}

    </span>You should try to prevent the removal by fixing these RC bugs.</span>
</div>

{% endwith %}
{% endwith %}
{% endwith %}
{% endspaceless %}
